package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Room;
import com.zzyl.nursing.vo.RoomVo;

import java.util.List;

/**
 * 房间Service接口
 */
public interface IRoomService extends IService<Room> {

    //查询房间
    Room selectRoomById(Long id);

    //新增房间
    int insertRoom(Room room);

    //修改房间
    int updateRoom(Room room);

    //批量删除房间
    int deleteRoomByIds(Long[] ids);

    //根据房间ID查询楼层、房间、价格
    RoomVo getRoomById(Long id);

    //根据楼层ID获取房间视图对象列表
    List<RoomVo> getRoomsByFloorId(Long floorId);

    //获取所有房间（负责老人）
    List<RoomVo> getRoomsWithNurByFloorId(Long floorId);

    //查询智能楼层的基础数据和设备上报的数据
    List<RoomVo> getRoomsWithDeviceByFloorId(Long floorId);
}